
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildGuildwarCfg : public ManualSingleton <GuildGuildwarCfg>
{
	friend ManualSingleton <GuildGuildwarCfg>;
public:
	GuildGuildwarCfg();
	~GuildGuildwarCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildGuildwarCfgInfo *GetGuildGuildwarCfgInfo(int32_t priceId);
	const GuildGuildwarCfgMap *GetGuildGuildwarCfgMap() { return &m_GuildGuildwarCfgMap; }
private:
	GuildGuildwarCfgMap m_GuildGuildwarCfgMap;
};

#define  g_MakeGuildGuildwarCfgTable() (GuildGuildwarCfg::Instance())
#define  g_GetGuildGuildwarCfgTable() (GuildGuildwarCfg::GetInstance())
#define  g_DelGuildGuildwarCfgTable() (GuildGuildwarCfg::Destroy())